﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Data.Services;

namespace GuiLayer
{
    /// <summary>
    /// Interaction logic for ToonAlleWagens.xaml
    /// </summary>
    public partial class ApWagensToonAlle : Window
    {
        
        public List<GuiLayer.VoertuigReference.Voertuig> voertuigenLijst { get; set; }

        GuiLayer.VoertuigReference.iVoertuigClient client = new GuiLayer.VoertuigReference.iVoertuigClient();
       
        public ApWagensToonAlle()
        {
            try
            {
                List<GuiLayer.VoertuigReference.Voertuig> l = client.GetAlleVoertuigen().ToList();
                voertuigenLijst = l;

                InitializeComponent();
            }
            catch (Exception ex)
            {
               
            }
           
        }
        private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            this.Close();
            ApWagenAlgemeen f1 = new ApWagenAlgemeen();
            f1.ShowDialog();
        }

    }
}
